
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_MonHoc_DeleteMonHoc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_MonHoc_DeleteMonHoc]
GO
CREATE PROC sp_MonHoc_DeleteMonHoc
	@MaMH	varchar(10)
AS
BEGIN
	DELETE
	FROM DangKy 
	WHERE MaMH = @MaMH	

	DELETE
	FROM MonHoc 
	WHERE MaMH = @MaMH	
END
